home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / lang / SmallEiffel.lha / SmallEiffel / man / pretty.txt < prev    next >
Text File  |  1998-12-22  |  3KB  |  64 lines

  1.  
  2.                              The pretty command
  3.                                       
  4.    Usage
  5.    
  6.    pretty [options] <Class_names> ...
  7.    
  8.    Command pretty is the SmallEiffel Pretty Printer for Eiffel source
  9.    files. For all classes given as arguments, pretty looks for the
  10.    corresponding file using the same algorithm as command finder. All the
  11.    corresponding files are reprinted in a pretty way.
  12.    
  13.    For example, if you are allowed to write the corresponding file, you
  14.    can reprints the source file of class HELLO_WORLD using command :
  15.    pretty hello_world
  16.           
  17.    There are four modes of pretty printing -zen, -default, -end and
  18.    -parano mode. Only one mode can be selected and mode -default is the
  19.    default mode.
  20.    
  21.    Options for pretty printing
  22.    
  23.    -zen:
  24.           The less you can print. Pseudo variable Current is never
  25.           printed (unless it is necessary). No end mark comment for
  26.           routines. No end comments for constructs (if, inspect, debug,
  27.           ...). Very compact printing.
  28.    -default:
  29.           the default mode. Don't change printing of pseudo variable
  30.           Current (if Current is in the input, Current is in the output).
  31.           Print end comment of routines. Don't print end comments for
  32.           constructs (if, inspect, debug, ...).
  33.    -end:
  34.           Same printing as previous mode but print ends of all constructs
  35.           (if, inspect, debug, ...).
  36.    -parano:
  37.           Same printing as previous mode but prints Current everywhere
  38.           you can.
  39.    -no_warning:
  40.           Suppress output for all warning messages (error messages are
  41.           still printed).
  42.           
  43.    Security and BackUp file
  44.    
  45.    For the security of sources files, a backup file is created before
  46.    writting the new file (system or command pretty may crash during
  47.    printing of the new file). The backup file name is "foo.bak" when
  48.    source file name is "foo.e". Backup file is written in the same
  49.    directory as source file.
  50.    If an old backup file already exists before pretty printing, command
  51.    pretty exit with an error message. To be sure that the pretty printing
  52.    is well done, the output file is parsed again.
  53.    Even if second parsing gives no errors, backup file is NOT removed.
  54.    Thus you can recompile your Eiffel code to check new file before
  55.    removing backup file by yourself.
  56.    
  57.                                    [Line]
  58.    Copyright © Dominique COLNET and Suzanne COLLIN - [1]<colnet@loria.fr>
  59.                     Last update: Tuesday June 9th, 1998 
  60.  
  61. References
  62.  
  63.    1. mailto:colnet@loria.fr
  64.